﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DotRas;

namespace VPNLaunch
{
  public partial class status : Form
  {
    RasDialer dialer = new RasDialer();
   
    public status()
    {
      InitializeComponent();
      RasConnection x = this.dialer.GetActiveConnections().SingleOrDefault();
      this.lblConnectionName.Text =  this.Text = (x != null) ? x.EntryName : "";
    }

    private void btnClose_Click(object sender, EventArgs e)
    {
      this.Close();
    }
  }
}
